Skip to content

Conversation

@yuth
Copy link
Contributor

@yuth yuth commented Oct 8, 2020

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@yuth yuth requested a review from attilah October 8, 2020 19:06
@lgtm-com
Copy link

lgtm-com bot commented Oct 8, 2020

This pull request introduces 26 alerts when merging 1cb94b3 into c932d6f - view on LGTM.com

new alerts:

  • 24 for Unused variable, import, function or class
  • 1 for Useless assignment to local variable
  • 1 for Unneeded defensive code

@yuth yuth force-pushed the transformer-redesign branch from 1cb94b3 to c9a1460 Compare October 8, 2020 19:40
@lgtm-com
Copy link

lgtm-com bot commented Oct 8, 2020

This pull request introduces 26 alerts when merging c9a1460 into c932d6f - view on LGTM.com

new alerts:

  • 24 for Unused variable, import, function or class
  • 1 for Useless assignment to local variable
  • 1 for Unneeded defensive code

@codecov
Copy link

codecov bot commented Oct 8, 2020

Codecov Report

Merging #5534 (77132a2) into master (56f41f8) will decrease coverage by 0.16%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5534      +/-   ##
==========================================
- Coverage   58.15%   57.99%   -0.17%     
==========================================
  Files         407      410       +3     
  Lines       18747    18769      +22     
  Branches     3745     3750       +5     
==========================================
- Hits        10903    10885      -18     
- Misses       7162     7200      +38     
- Partials      682      684       +2     
Impacted Files Coverage Δ
...dejs-function-runtime-provider/src/utils/invoke.ts 0.00% <0.00%> (-88.24%) ⬇️
...es/amplify-appsync-simulator/src/velocity/index.ts 63.63% <0.00%> (-11.81%) ⬇️
...sync-simulator/src/schema/appsync-scalars/index.ts 29.50% <0.00%> (-10.77%) ⬇️
...ackages/amplify-codegen/src/commands/statements.js 88.88% <0.00%> (-1.81%) ⬇️
packages/amplify-codegen/src/commands/types.js 92.00% <0.00%> (-1.75%) ⬇️
packages/amplify-cli/src/domain/amplify-toolkit.ts 1.53% <0.00%> (-1.47%) ⬇️
packages/amplify-cli/src/index.ts 49.03% <0.00%> (-1.43%) ⬇️
...psync-model-plugin/src/visitors/appsync-visitor.ts 94.88% <0.00%> (-0.90%) ⬇️
...s/graphql-predictions-transformer/src/resources.ts 90.00% <0.00%> (-0.25%) ⬇️
packages/amplify-codegen/src/utils/index.js 100.00% <0.00%> (ø)
... and 14 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 56f41f8...7a62b6e. Read the comment docs.

@lgtm-com
Copy link

lgtm-com bot commented Oct 8, 2020

This pull request introduces 7 alerts when merging 215463c into c932d6f - view on LGTM.com

new alerts:

  • 3 for Useless assignment to local variable
  • 3 for Unused variable, import, function or class
  • 1 for Unneeded defensive code

@yuth yuth force-pushed the transformer-redesign branch from 215463c to aeada80 Compare October 9, 2020 01:37
@lgtm-com
Copy link

lgtm-com bot commented Oct 9, 2020

This pull request introduces 8 alerts when merging aeada80 into 952a92e - view on LGTM.com

new alerts:

  • 4 for Unused variable, import, function or class
  • 3 for Useless assignment to local variable
  • 1 for Unneeded defensive code

@yuth yuth force-pushed the transformer-redesign branch from aeada80 to fbb6784 Compare October 9, 2020 14:33
@lgtm-com
Copy link

lgtm-com bot commented Oct 9, 2020

This pull request introduces 8 alerts when merging fbb6784 into 952a92e - view on LGTM.com

new alerts:

  • 4 for Unused variable, import, function or class
  • 3 for Useless assignment to local variable
  • 1 for Unneeded defensive code

@yuth yuth force-pushed the transformer-redesign branch from fbb6784 to faa5e25 Compare October 22, 2020 21:01
@lgtm-com
Copy link

lgtm-com bot commented Oct 22, 2020

This pull request introduces 18 alerts when merging faa5e25 into 77132a2 - view on LGTM.com

new alerts:

  • 16 for Unused variable, import, function or class
  • 1 for Useless assignment to local variable
  • 1 for Unneeded defensive code

@yuth yuth force-pushed the transformer-redesign branch from faa5e25 to 77db0f1 Compare October 30, 2020 01:14
@lgtm-com
Copy link

lgtm-com bot commented Oct 30, 2020

This pull request introduces 30 alerts when merging 77db0f1 into 7a806b2 - view on LGTM.com

new alerts:

  • 28 for Unused variable, import, function or class
  • 1 for Useless assignment to local variable
  • 1 for Unneeded defensive code

@lgtm-com
Copy link

lgtm-com bot commented Oct 30, 2020

This pull request introduces 20 alerts when merging 019a3ec into c0d73a6 - view on LGTM.com

new alerts:

  • 17 for Unused variable, import, function or class
  • 1 for Useless assignment to local variable
  • 1 for Unreachable statement
  • 1 for Unneeded defensive code

@yuth yuth force-pushed the transformer-redesign branch from 6859a16 to 103d0b0 Compare October 30, 2020 19:20
@lgtm-com
Copy link

lgtm-com bot commented Oct 30, 2020

This pull request introduces 20 alerts when merging 9246df1 into 319a3ae - view on LGTM.com

new alerts:

  • 17 for Unused variable, import, function or class
  • 1 for Useless assignment to local variable
  • 1 for Unreachable statement
  • 1 for Unneeded defensive code

@lgtm-com
Copy link

lgtm-com bot commented Oct 30, 2020

This pull request introduces 5 alerts when merging 381d87d into 319a3ae - view on LGTM.com

new alerts:

  • 2 for Unused variable, import, function or class
  • 1 for Useless assignment to local variable
  • 1 for Unreachable statement
  • 1 for Unneeded defensive code

@lgtm-com
Copy link

lgtm-com bot commented Nov 3, 2020

This pull request introduces 5 alerts when merging e379e6e into 6143e4b - view on LGTM.com

new alerts:

  • 2 for Unused variable, import, function or class
  • 1 for Useless assignment to local variable
  • 1 for Unreachable statement
  • 1 for Unneeded defensive code

Copy link
Contributor

@attilah attilah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job on this huge chunk, I appreciate all the comments around the new code!

It looks good to me I have a bunch of nits, most of them around naming fix as you wish:

  • In general I would avoid using the 'New' prefix for types as these will be part of the 'public API'
  • A lot of filenames are not matching the class/interface inside. It would be nice to be concise in this to make it easier to locate things. Of course when multiple types/functions are inside it makes sense.
  • We should leverage Record type all around we've a plenty of places with [...]: ... members
  • transformer-resources.ts is an empty file
  • A lot of Todos are in the code it would be nice to see if they're planned to be addressed in this PR or future one?
  • for (let foo of -> for (const foo of in some places
  • Defination -> Definition at some places, not sure tagged all of those
  • JSON.parse and stringify to use JSONUtilities

One extra thing I would like be addressed is to get out compileSchema from awscloudformationprovider as it is making that project a bottleneck for package loading.

@lgtm-com
Copy link

lgtm-com bot commented Nov 4, 2020

This pull request introduces 4 alerts when merging 941f862 into 955022c - view on LGTM.com

new alerts:

  • 2 for Unused variable, import, function or class
  • 1 for Useless assignment to local variable
  • 1 for Unneeded defensive code

@yuth yuth force-pushed the transformer-redesign branch from 9a70715 to 78e7730 Compare November 4, 2020 22:33
@lgtm-com
Copy link

lgtm-com bot commented Nov 4, 2020

This pull request introduces 2 alerts when merging 78e7730 into 955022c - view on LGTM.com

new alerts:

  • 1 for Useless assignment to local variable
  • 1 for Unneeded defensive code

@lgtm-com
Copy link

lgtm-com bot commented Nov 5, 2020

This pull request introduces 2 alerts when merging 72466cd into 955022c - view on LGTM.com

new alerts:

  • 1 for Useless assignment to local variable
  • 1 for Unneeded defensive code

@lgtm-com
Copy link

lgtm-com bot commented Nov 5, 2020

This pull request introduces 1 alert when merging e487512 into 955022c - view on LGTM.com

new alerts:

  • 1 for Unneeded defensive code

@yuth yuth marked this pull request as ready for review November 5, 2020 18:47
@lgtm-com
Copy link

lgtm-com bot commented Nov 5, 2020

This pull request introduces 1 alert when merging 21b8ba0 into 955022c - view on LGTM.com

new alerts:

  • 1 for Unneeded defensive code

@lgtm-com
Copy link

lgtm-com bot commented Nov 5, 2020

This pull request introduces 1 alert when merging 7ca5fd8 into 955022c - view on LGTM.com

new alerts:

  • 1 for Unneeded defensive code

@lgtm-com
Copy link

lgtm-com bot commented Nov 5, 2020

This pull request introduces 1 alert when merging faf8bdf into 955022c - view on LGTM.com

new alerts:

  • 1 for Unneeded defensive code

throw new SchemaValidationError(errors);
}

// // check if the project is sync enabled
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it leftover?

Copy link
Contributor

@attilah attilah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some new nit comments, but LGTM, we can enhance, change things later.

@ammarkarachi
Copy link
Contributor

@yuth @attilah Can we merge this?

@yuth yuth force-pushed the transformer-redesign branch from faf8bdf to 7a62b6e Compare November 6, 2020 23:45
@yuth yuth merged commit a93c685 into aws-amplify:master Nov 7, 2020
r0zar pushed a commit to r0zar/amplify-cli that referenced this pull request Nov 19, 2020
New experimental graphql transformer with support for Pipeline functions. Currently this is behind a feature flag `useExperimentalPipelinedTransformer` and support only model directive.
@github-actions
Copy link

github-actions bot commented Nov 8, 2021

This pull request has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants